import axios from '../utils'

const api = {
  fileManager: '/file-manager',
  getUsers: '/user/getUserByCompany',
  getUserByCompany: '/user/getUserByCompany',
}

export default api

export function saveFileManager(parameter) {
  return axios({
    url: api.fileManager,
    method: 'post',
    data: parameter
  })
}

export function getUserByCompany() {
  return axios({
    url: api.getUserByCompany,
    method: 'get'
  })
}

export function getUsers() {
  return axios({
    url: api.getUsers,
    method: 'get',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

